﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    Inherits="Nivdal.ForumMembers" Title="" StylesheetTheme="SkinFile" CodeBehind="ForumMembers.aspx.cs" %>

<asp:Content ID="PageNameContent" ContentPlaceHolderID="PageNamePlaceHolder" runat="server">
    <asp:Label ID="PageNameLabel" runat="server" Text="<%$ Resources:Resource, ForumMembers_PageNameLabel%>"
        CssClass="PageNameContentStyle"></asp:Label>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="basic_element">
    <div class="red_title">
       <asp:Hyperlink ID="ForumNameLinkButton" runat="server" CssClass="white_title"></asp:Hyperlink>
    </div>
    <div class="padding5">
        <asp:Label ID="MessageLabel" runat="server" Text="" SkinID="GreenSmallHeaderLabel"></asp:Label>
    
        <asp:GridView ID="ForumMembersGridView" runat="server" SkinID="Professional" DataSourceID="ForumMembersSqlDataSource"
            AutoGenerateColumns="false" AllowPaging="True" PageSize="20">
            <PagerSettings FirstPageText="<%$ Resources:Resource, FirstPage %>" LastPageText="<%$ Resources:Resource, LastPage %>"
                Mode="NumericFirstLast" PageButtonCount="10" Position="Bottom" />
            <PagerStyle CssClass="pagination" HorizontalAlign="Center" />
            <Columns>   
                <asp:TemplateField HeaderText="<%$ Resources:Resource, Global_Username%>">
                    <ItemTemplate>
                        <asp:HyperLink ID="UserNameHyperLink" runat="server" Text='<%# Eval("UserName") %>'
                         NavigateUrl='<%# "UserPage.aspx?Id=" + Eval("UserId") %>' SkinID="GreenTitleHyperLink"></asp:HyperLink>                    
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="<%$ Resources:Resource, ForumMembers_MembershipType %>">
                    <ItemTemplate>
                        <asp:Label ID="MembershipTypeLabel" runat="server" Text='<%# Eval("MembershipType") %>'
                            SkinID="SmallHeaderLabel" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="ForumMembersSqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
            SelectCommand="Nivdal_ForumGetForumMembers" SelectCommandType="StoredProcedure">
        </asp:SqlDataSource>
        <br />
        <asp:HyperLink ID="AdministratorRoleHyperLink" runat="server" Text="" SkinID="GreenTitleHyperLink"></asp:HyperLink>
        <br />
        <asp:HyperLink ID="BackToTheForumHyperLink" Text="<%$ Resources:Resource, Global_BackToForum %>"
            runat="server" SkinID="GreenTitleHyperLink"></asp:HyperLink>
    </div>
    </div>
</asp:Content>
